#include <iostream>

using namespace std;

int main()
{
    int a=1;
    int b=2;
    int S;
    int P;

    S=a*b;
    P=2*(a+b);

    cout << P;
    cout << S;

    return 0;
}

